#include <stdio.h>

int main()
{
   float num=0.12;
   printf("float类型的变量为：%.2f\n",num);
   printf("float类型的变量为：%.2e\n",num);
   return 0;
}